#ifndef JSERVER_H
#define JSERVER_H

#include <QObject>
#include <QtNetwork>
#include <QTcpServer>
#include <QTcpSocket>
#include <QList>
#include "jconn.h"


class JServer : public QTcpServer
{
    Q_OBJECT
public:
    JServer(QObject *parent = 0);
    ~JServer();
    QList <JConn *> clientList;
    total_MMA data,data1;
    void Cal_data();
protected:
    void timerEvent(QTimerEvent *);


signals:
    void newConnection();
    void oldconnection(int);

public slots:

private:
    void incomingConnection(int handle);

};

#endif // JSERVER_H
